package com.zyicoding.myfactory.service.impl;

import com.zyicoding.myfactory.dao.CarinfoMapper;
import com.zyicoding.myfactory.pojo.Carinfo;
import com.zyicoding.myfactory.service.CarInfoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class CarInfoServiceImpl implements CarInfoService {
    @Autowired
    private CarinfoMapper carinfoMapper;

    @Override
    public List<Carinfo> selectAllCarInfo() {
        return carinfoMapper.selectList(null);
    }

    @Override
    public Carinfo selectCarById(Integer id) {
        return carinfoMapper.selectById(id);
    }
}
